<template>
	<view>
		<u-navbar title="我的收藏" :autoBack="true" :placeholder="true" leftIconColor="#ffffff" :titleStyle="{color: '#ffffff'}" bgColor="#e60000" class="navBarHeight" />
		
		<scroll-view scroll-y @scrolltolower="getData(1)" lower-threshold="60">
			<empty text="暂无记录" :show="goodsList.length == 0" />
			<view v-for="(item, index) in goodsList" :key="item.id" @tap="goTo(item)">
				<goods class="u-m-t-20" :info="item" @del="(id, type) => del(id, type, index)" />
			</view>
			<load-more v-if="goodsList.length" :showLoad="goodsShowLoad" />
		</scroll-view>
	</view>
</template>

<script>
	import goods from './goods-card.vue'
	export default {
		components:{
			goods
		},
		data() {
			return {
				goodsList:[1,2,2],
				goodsEmptyShow:false,
				goodsShowLoad:false,
			};
		},
		methods: {
			del(){
				
			},
			getData(){
				
			},
			goTo(){
				
			}
		}
	}
</script>

<style lang="scss">
page {
	background: #f5f5f5;
}
</style>
